package 抽象工厂模式;

public class PhoneFactory extends AbstractFactory {
    public Phone createPhone(String brand) {
        if ("I".equals(brand)){
            return new PhoneApple();
        }
        else if("MI".equals(brand)){
            return new PhoneMI();
        }
        else {
            return null;
        }
    }

    public Computer createComputer(String brand) {
        return null;
    }
}
